home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10807 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  815 b 

  1. Path: bignews.shef.ac.uk!usenet
  2. From: E.V.Smith@shef.ac.uk (Eric Smith)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help, C++ '&' dereferencer
  5. Date: 11 Mar 1996 12:08:22 GMT
  6. Organization: Automatic Control & Systems Engineering, University of Sheffield , UK
  7. Message-ID: <4i153m$pgf@bignews.shef.ac.uk>
  8. NNTP-Posting-Host: pc022086.shef.ac.uk
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.7
  12.  
  13. My manuals and online help is a little vague on this one so can anyone
  14. please simply explain to me what the  &  sign ( or 'dereferencer' I believe)
  15. is doing in the following command line where 'value' should end up as 1 or 0.
  16.  
  17.     value=((inportb(0x1B4) & 0x20)>>5);
  18.  
  19.  
  20. if you can put it in context with the problem it would be great.
  21. Thanks.
  22. Eric...
  23. Email reply appreciated if possible please
  24.  
  25.